ngl: We only need two bits for phases
authorMatthias Clasen <mclasen@redhat.com>
Mon, 29 Mar 2021 01:13:23 +0000 (21:13 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 30 Mar 2021 04:19:28 +0000 (00:19 -0400)
We use 4 phases, so 2 bits are enough.

gsk/ngl/gsknglglyphlibraryprivate.h

index 5bf240e5e1fa32bae13821d6d80ec98027e68c44..819523144c740ec6a89d78ad3d77227242355a87 100644 (file)
@@ -33,9 +33,9 @@ typedef struct _GskNglGlyphKey
 {
   PangoFont *font;
   PangoGlyph glyph;
-  guint xshift : 3;
-  guint yshift : 3;
-  guint scale  : 26; /* times 1024 */
+  guint xshift : 2;
+  guint yshift : 2;
+  guint scale  : 28; /* times 1024 */
 } GskNglGlyphKey;
 
 typedef struct _GskNglGlyphValue